#ifndef WIDGET_CREATE_DLG_H
#define WIDGET_CREATE_DLG_H

class WidgetCreateDlg
{
public:
	tEvent1<bool> eventEndDialog;

public:
	WidgetCreateDlg();
	~WidgetCreateDlg();

	void DoModal();

	int GetSelectType();
	MGUI_LookFeel * GetSelectLookFeel();

protected:
	MGUI_Layout * mLayout;
	MGUI_Widget * mDialog;

	MGUI_Label * mLabel_Caption;

	MGUI_ComboBox * mComboBox_WidgetType;
	MGUI_ListBox * mListBox_LookFeel;

	MGUI_Widget * mWidget_Priview;
	MGUI_Button * mButton_OK;
	MGUI_Button * mButton_Cancel;

	MGUI_Widget * mWidget;

protected:
	void OnWidgetTypeChanged_(int _index);
	void OnLookFeelChanged_(int _index);
	void OnOK_();
	void OnCancel_();

	tListener1<WidgetCreateDlg, int> OnWidgetTypeChanged;
	tListener1<WidgetCreateDlg, int> OnLookFeelChanged;
	tListener0<WidgetCreateDlg> OnOK;
	tListener0<WidgetCreateDlg> OnCancel;
};

#endif